﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TetrisGame
{
    class Block
    {
        public int X { get; set; } 
        public int Y { get; set; } 
        public ConsoleColor Color { get; set; } 

        public Block(int x, int y, ConsoleColor color)
        {
            X = x;
            Y = y;
            Color = color;
        }

        //public void Rotate()
        //{  }

        public void MoveLeft()
        { X--; }

        public void MoveDown()
        { Y++; }

        public void MoveRight()
        { X++; }

        public bool fullRow(int currentY) //naming convention FullRow / unnecessary method, there are public getter and setter
        {
            if (Y == currentY)
                return true;
            return false;
        }
    }
}
